package com.vdong.data.repository;

import com.vdong.data.model.ShipperOrderUser;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author: liangwei
 */
public interface ShipperOrderUserRepository extends JpaRepository<ShipperOrderUser, Integer> {

    ShipperOrderUser findByShipperIdAndUserIdAndUsersKey(int shipperId, String userId, String usersKey);

    List<ShipperOrderUser> findByUserIdAndUsersKey(String userId, String usersKey);
}
